package com.basics.api.response.channel;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class PostCommentListData implements Serializable {

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty("回复人昵称")
    private String cureUserName;

    @ApiModelProperty(value = "评论内容")
    private String comment;

    @ApiModelProperty(value = "评论图片")
    private String imagesUrl;


    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty("是否点赞")
    private Integer hasPrise;

    @ApiModelProperty("点赞数量")
    private Integer priseNum;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("评论发布时间")
    private Date createTime;

    @ApiModelProperty("需要展开的回复数量(大于0才显示)")
    private Long replyNum;

    @ApiModelProperty("是否是自己的评论(用于判断自己回复自己)")
    private Boolean isMine=false;

    @ApiModelProperty("回复列表")
    private List<PostCommentListData> replyList;
}
